<template>
	<view class="points-container">
		<!-- 积分显示卡片 -->
		<view class="points-card">
			<view class="points-icon">
				<view class="coin-stack">
					<view class="coin coin-1"></view>
					<view class="coin coin-2"></view>
				</view>
			</view>
			<view class="points-symbol">
				<text class="symbol">¥</text>
			</view>
		</view>

		<!-- 积分统计 -->
		<view class="points-summary">
			<view class="summary-item">
				<text class="summary-label">累计获得:</text>
				<text class="summary-value">{{ totalEarned }}</text>
			</view>
			<view class="summary-item">
				<text class="summary-label">剩余积分:</text>
				<text class="summary-value">{{ remainingPoints }}</text>
			</view>
		</view>

		<!-- 积分记录列表 -->
		<view class="points-history">
			<view class="history-item" v-for="(item, index) in pointsHistory" :key="index">
				<view class="history-content">
					<text class="history-desc">{{ item.description }}</text>
					<text class="history-time">{{ item.time }}</text>
				</view>
				<view class="history-points">
					<text class="points-change" :class="{ positive: item.points > 0, negative: item.points < 0 }">
						{{ item.points > 0 ? '+' : '' }}{{ item.points }}
					</text>
				</view>
			</view>
		</view>

		<!-- 没有更多数据提示 -->
		<view class="no-more-data">
			<text class="no-more-text">没有更多数据了</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				totalEarned: null,
				remainingPoints: null,
				pointsHistory: [
					{
						description: '积分测试',
						time: '2025-08-01 11:29:36',
						points: null
					}
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.points-container {
		background-color: #f5f5f5;
		min-height: 100vh;
		padding: 20rpx;
	}

	/* 积分显示卡片 */
	.points-card {
		background: linear-gradient(135deg, #FF6B35, #FF8C42);
		border-radius: 20rpx;
		padding: 40rpx 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 20rpx;
		box-shadow: 0 4rpx 20rpx rgba(255, 107, 53, 0.3);
	}

	.points-icon {
		position: relative;
		width: 80rpx;
		height: 60rpx;
	}

	.coin-stack {
		position: relative;
		width: 100%;
		height: 100%;
	}

	.coin {
		position: absolute;
		width: 40rpx;
		height: 40rpx;
		background-color: #E55A2B;
		border-radius: 50%;
		border: 2rpx solid #D44A1B;
	}

	.coin-1 {
		top: 0;
		left: 0;
		z-index: 2;
	}

	.coin-2 {
		top: 10rpx;
		left: 20rpx;
		z-index: 1;
	}

	.points-symbol {
		width: 80rpx;
		height: 80rpx;
		background-color: #fff;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
	}

	.symbol {
		font-size: 36rpx;
		font-weight: bold;
		color: #FF6B35;
	}

	/* 积分统计 */
	.points-summary {
		background-color: #fff;
		border-radius: 20rpx;
		padding: 30rpx;
		margin-bottom: 20rpx;
		display: flex;
		justify-content: space-between;
		box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
	}

	.summary-item {
		display: flex;
		align-items: center;
	}

	.summary-label {
		font-size: 28rpx;
		color: #333;
		margin-right: 10rpx;
	}

	.summary-value {
		font-size: 28rpx;
		color: #ff4444;
		font-weight: bold;
	}

	/* 积分记录列表 */
	.points-history {
		background-color: #fff;
		border-radius: 20rpx;
		padding: 20rpx;
		box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
	}

	.history-item {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 30rpx 20rpx;
		border-bottom: 1rpx solid #f0f0f0;
	}

	.history-item:last-child {
		border-bottom: none;
	}

	.history-content {
		flex: 1;
		display: flex;
		flex-direction: column;
	}

	.history-desc {
		font-size: 28rpx;
		color: #333;
		margin-bottom: 10rpx;
	}

	.history-time {
		font-size: 24rpx;
		color: #999;
	}

	.history-points {
		display: flex;
		align-items: center;
	}

	.points-change {
		font-size: 28rpx;
		font-weight: bold;
	}

	.points-change.positive {
		color: #ff4444;
	}

	.points-change.negative {
		color: #666;
	}

	/* 没有更多数据提示 */
	.no-more-data {
		text-align: center;
		padding: 40rpx 0;
	}

	.no-more-text {
		font-size: 24rpx;
		color: #999;
	}
</style> 